package com.bai.localshop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bai.localshop.pojo.entity.AddressBook;
import com.bai.localshop.pojo.dto.AddressAddDTO;
import com.bai.localshop.pojo.dto.AddressUpdateDTO;
import com.bai.localshop.pojo.vo.AddressVO;

import java.util.List;

public interface AddressBookService extends IService<AddressBook> {

    Long addAddress(AddressAddDTO addressAddDTO);

    void updateAddress(AddressUpdateDTO addressUpdateDTO);

    void deleteAddress(Long addressId);

    void setDefaultAddress(Long addressId);

    AddressVO getAddressDetail(Long addressId);

    List<AddressVO> getUserAddressList();

    AddressVO getDefaultAddress();
}